//
//  NewsMenuCell.swift
//  lookLikeIweekly
//
//  Created by ZhangXiaoqian on 16/6/12.
//  Copyright © 2016年 Mainzxq. All rights reserved.
//

import UIKit

class NewsMenuCell: UICollectionViewCell {
    
    let menuLbl: UILabel! = UILabel()
    
    override init(frame: CGRect) {
        super.init(frame: frame)
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    override func layoutSubviews() {
        super.layoutSubviews()
        self.layer.borderWidth = 0.3
        self.layer.borderColor = UIColor.grayColor().CGColor
        self.contentView.backgroundColor = UIColor.blackColor()
        self.contentView.frame.size = CGSize(width: 50, height: 25)
        self.frame.size = CGSize(width: 50, height: 25)
        menuLbl.font = UIFont.systemFontOfSize(12)
        menuLbl.frame.origin = CGPointMake(0, 0)
        menuLbl.frame.size = CGSize(width: 50, height: 25)
        menuLbl.textAlignment = .Center
        menuLbl.textColor = UIColor.whiteColor()
        self.contentView.addSubview(menuLbl)
    }
    

}
